import os
import logging
from pkgr.tests.pkgrtestcase import PkgrTestCase

logger = logging.getLogger('pkgr.tests.Test_Pkgr_Groups')

class Test_Pkgr_Groups(PkgrTestCase):
    def test_groups_load(self):
        """ loading of groups """
        pkgr = self.pkgr
        print pkgr.get_repos()
        self.assertTrue(len(pkgr.get_all_groups()) > 0, "should have groups")
        self.assertTrue(pkgr.get_all_groups()[0].id == 'testgroup', "the first group should be test group")
